package com.ry.service;

import com.ry.model.dto.UserDTO;
import com.ry.model.entity.User;

/**
 * @author ry
 * @since 2021-11-09 17:10
 **/
public interface UserService {
    /**
     * 通过openId获取用户
     * @param user
     * @return
     */
    UserDTO getUserByOpenId(User user);

    UserDTO register(User user);

    UserDTO getUserById(Integer id);
}
